<template>
        <van-button type="primary" @click="toReg">注册</van-button>
        <van-button type="primary" @click="toLogin">登录</van-button>
        <van-button type="primary" @click="toLogout">退出登录</van-button>
</template>
    
<script>
    export default{
        data() {
            return {
                
            }
        },
        methods:{
            toReg(){
                this.$router.push('/reg')
            },
            toLogin(){
                this.$router.push('/login')
            },
            toLogout(){
                this.$router.push('/login')
                localStorage.removeItem('mallFrontToken')
                localStorage.removeItem('mallFrontUserInfo')
            }
        }
    }
</script>
    
<style>
    
</style>